"use client";

interface Props {
  title: string;
  disabled?: boolean;
  clickEvent?: () => void;
}

export default function MyButton({ title, disabled, clickEvent }: Props) {
  return (
    <button
      className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
      disabled={disabled}
      onClick={clickEvent}
    >
      {title}
    </button>
  );
}
